const assetsCDN = {
    externals: {
        "vue": "Vue",
        "vue-router": "VueRouter"
    },
    css: [],
    js: [
        "https://cdn.bootcss.com/vue/2.6.11/vue.min.js",
        "https://cdn.bootcdn.net/ajax/libs/vue-router/3.2.0/vue-router.min.js"
    ],
};

const CompressionPlugin = require('compression-webpack-plugin');//引入gzip压缩插件
module.exports = {
    devServer: {
        port: 3000
    },
    productionSourceMap: false,
    configureWebpack: {
        externals: assetsCDN.externals,
    }
  }